<?php 
define('_VIEW_MODEL_','admin');
session_start();
$statu = $_SESSION['statu'];
require_once("../init.php");
if(!$statu){
	echo "<script>window.parent.location.href='./index.php'</script>";
}
if(isset($act)&&$act=="add"){
	
	$func = 'ddfsadfs';
	$nowtime = @time();
	//echo "insert into {$telper}friendlink set `title` = '$linkname',`link` = '$linkaddres',`rank` = '$linkrank',`state` = '$linksta'";
	//exit;
	$db->Execute("insert into {$telper}prop set `title` = '$linkname',`summary` = '$briefintro',`money` = '$price',`func` = '$func',`rank` = '$proprank',`created` = '$nowtime',`state` = '0'");
	header("Location:proplist.php"); 
	exit;
}
$act = "add";

$smartyObj->assign('title',$admintitle);
//$smartyObj->assign('linkinfo',$linkinfo);
$smartyObj->assign('adminpropadd',$adminpropadd);
$smartyObj->assign('act',$act);
$smartyObj->assign('propstyle',$propstyle);
$smartyObj->display("propadd.tpl");
?>